package com.situ.boot.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.boot.entity.Student;
import com.situ.boot.mapper.StudentMapper;
import com.situ.boot.service.IStudentService;

@Service
public class StudentServiceImpl implements IStudentService{
	@Autowired
	private StudentMapper studentMapper;

	@Override
	public List<Student> selectAll() {
		return studentMapper.selectAll();
	}

	@Override
	public void deleteById(Integer id) {
		studentMapper.deleteByPrimaryKey(id);
	}

}
